﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IoCTechDay.HollywoodPrinciple
{
    public class HollywoodDirector
    {
        private readonly List<IActor> _actors;

        public HollywoodDirector()
        {
            _actors = new List<IActor>();
            _actors.Add(new AustrianDeathMachine());
            _actors.Add(new VanDamme());
        }

        public void Action()
        {
            foreach (var actor in _actors)
            {
                actor.Act();
            }
        }

        public void Cut()
        {
            foreach (var actor in _actors)
            {
                actor.Cut();
            }
        }
    }
}
